package com.hlm.demo.entity.ex;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hlm.demo.entity.AdminRole;

import java.io.Serializable;

import java.util.Date;
import java.util.List;

/**
 * 管理员信息表对应的实体类
 */
public class AdminWithRole implements Serializable {

    private Integer adminId;
    private String adminCode;
    private String password;
    private String adminName;
    private String telephone;
    private String email;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date enrolldate;
    private String allRole;


    private List<AdminRole> adminRoleList;

    @Override
    public String toString() {
        return "AdminWithRole{" +
                "adminId=" + adminId +
                ", adminCode='" + adminCode + '\'' +
                ", password='" + password + '\'' +
                ", name='" + adminName + '\'' +
                ", telephone='" + telephone + '\'' +
                ", email='" + email + '\'' +
                ", enrolldate=" + enrolldate +
                ", allRole='" + allRole + '\'' +
                ", adminRoleList=" + adminRoleList +
                '}';
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public String getAdminCode() {
        return adminCode;
    }

    public void setAdminCode(String adminCode) {
        this.adminCode = adminCode;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getEnrolldate() {
        return enrolldate;
    }

    public void setEnrolldate(Date enrolldate) {
        this.enrolldate = enrolldate;
    }

    public String getAllRole() {
        return allRole;
    }

    public void setAllRole(String allRole) {
        this.allRole = allRole;
    }

    public List<AdminRole> getAdminRoleList() {
        return adminRoleList;
    }

    public void setAdminRoleList(List<AdminRole> adminRoleList) {
        this.adminRoleList = adminRoleList;
    }
}


